package org.dromara.system.domain.bo;

import org.dromara.system.domain.SysUserAddress;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.system.domain.common.BasePageReqDTO;

/**
 * 地址业务对象 sys_user_address
 *
 * @author Lion Li
 * @date 2025-07-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUserAddress.class, reverseConvertGenerate = false)
public class SysUserAddressBo extends BasePageReqDTO {

    /**
     *
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 收货人姓名
     */
    @NotBlank(message = "收货人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String addressName;

    /**
     * 收货人电话
     */
    @NotBlank(message = "收货人电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String addressPhone;

    /**
     * 地点,省市区
     */
    @NotBlank(message = "地点,省市区不能为空", groups = { AddGroup.class, EditGroup.class })
    private String addressLocation;

    /**
     * 详细地址
     */
    @NotBlank(message = "详细地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String addressDetailed;

    /**
     * 是否默认地址
     */
    private Integer isDefaultAddress;

    /**
     * 备注
     */
    private String remark;


}
